home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 49
/
Volume 49 - JOGO DISK .iso
/
Games
/
bloop.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-09-27
|
1KB
|
50 lines
depth = 0;
level = 1;
lives = 6;
score = 0;
fps = 48;
stopAllSounds();
bombnum = 0;
if(!settter)
{
_quality = "medium";
mw = "mouse";
settter = true;
}
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
checkFrame = function(which)
{
if(which.frameStart != _root._currentframe)
{
which.removeMovieClip();
}
};
setFrame = function(which)
{
which.frameStart = _root._currentframe;
};
createLevel = function()
{
_root.clear();
attachMovie("background","background",++depth);
attachMovie("light","light",++depth);
light._x = _root.cannon._x;
light._alpha = 20;
attachMovie("cannon","cannon",++depth);
_root.cannon._x = Stage.width / 2;
_root.cannon._y = Stage.height - 50;
music = new Sound();
music.attachSound("music1");
music.onSoundComplete = function()
{
music.start();
};
attachMovie("bloopCreator","bloopCreator",++depth);
music.start();
attachMovie("bombout","bombout",++depth);
attachMovie("word","word",++depth);
attachMovie("hud","hud",++depth);
};